<?php
   $item = $_['jobdetails'];
   $interviews = json_decode($item->online_interview_requirements);

   if(!empty($interviews->onlineinterview)): 
?>
   <div id="jobposhead" class="set_quence has_interview">
      <ul class="clearfix">
         <li id="matchrulehead" class="gray">
            <a href="#interview">匹配条件&nbsp;
               <i class="havedone"></i>
            </a>
         </li>
         <li id="onlinetesthead" class="gray">
            <a href="#onlinetest" >线上笔试&nbsp;
               <i class="<?php echo !empty($interviews->onlinetest) ? 'havedone' : 'nothavedone' ?>"></i>
            </a>
            <span class="interview_key" style="display:none;">onlinetest</span>
         </li>
         <!-- <li class="gray"><a href="#">视频面试</a><input type="checkbox"/></li> -->
         <li id="persontesthead" class="gray">
            <a href="#persontest">性格评测&nbsp;
               <i class="<?php echo !empty($interviews->persontest) ? 'havedone' : 'nothavedone' ?>"></i>
            </a>
            <span class="interview_key" style="display:none;">persontest</span>
         </li>
      </ul>
   </div>
   <?php else: ?>
   <div id="jobposhead" class="set_quence">
      <ul class="clearfix">
         <li id="matchrulehead" class="gray" ><a href="#interview">匹配条件&nbsp;<i class="nothavedone"></i></a></li>
         <li id="onlinetesthead" class="gray"><a href="#onlinetest" class="colorgray">线上笔试&nbsp;<i class="nothavedone"></i></a></li>
         <!-- <li class="gray"><a href="#" class="colorgray">视频面试&nbsp;<i class="nothavedone"></i></a></li> -->
         <li id="persontesthead" class="gray"><a href="#persontest" class="colorgray">性格评测&nbsp;<i class="nothavedone"></i></a></li>
      </ul>
   </div>
   <?php endif; ?>
